package com.huwaiwai.jvm.d20200522;

/**
 * @author 歪大哥😁
 * @date 2020-05-22.
 */
public class StringTest {


    private void test1() {
        String a = "a" + "b";
        String b = "ab";
        System.out.println(a);
        System.out.println(b);
    }

    private void test2() {
        String a = "a";
        String b = "b";
        String ab1 = a + b;
        String ab2 = "a" + b;
        String ab3 = a + "b";

        System.out.println(ab1);
        System.out.println(ab2);
        System.out.println(ab3);

    }

    public static void main(String[] args) {

    }


}
